package com.taotao.web;

import com.taotao.EasyUIResult;
import com.taotao.TaotaoResult;
import com.taotao.service.TbItemParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author evader
 * @date 2020-09-25 21:29
 */
@Controller
@RequestMapping("/itemparam")
public class ItemParamController {

    @Autowired
    private TbItemParamService tbItemParamService;

    @RequestMapping("/list")
    @ResponseBody
    public EasyUIResult paramlist(@RequestParam("page") int pageNum, @RequestParam("rows") int pageSize){
        return tbItemParamService.selectItemParamExt(pageNum, pageSize);
    }

    // 新增商品
    @RequestMapping("/add")
    @ResponseBody
    public TaotaoResult add(){
        return TaotaoResult.ok();
    }

    // 删除商品
    @RequestMapping("/delete")
    @ResponseBody
    public TaotaoResult delete(){
        return TaotaoResult.ok();
    }

    // 编辑商品

    // 保存商品
    @RequestMapping("/save")
    @ResponseBody
    public TaotaoResult save(){
        
        return TaotaoResult.ok();
    }
}
